#ifndef ESP01S_MQTT_WEB_WEBCLIENT_H
#define ESP01S_MQTT_WEB_WEBCLIENT_H
#include "config/GlobalConfig.h"

class WebClient {
public:
    explicit WebClient(GlobalConfig& config);
    static void init();
    void loop();

private:
    GlobalConfig& config;
    HTTPClient http;
    // 定义定时器相关变量
    unsigned long lastLoopTime;
    const unsigned long loopInterval = 60000; // 每 10000 毫秒调用一次
    void sendRequest();
};

#endif